package cn.liontalk.StrategyPattern.duck;

import cn.liontalk.StrategyPattern.Duck;
import cn.liontalk.StrategyPattern.impl.FlyNoWing;

/**
 * @author ZhouZhe
 * @version 1.0
 * @description 大黄鸭
 * @date 2019-01-09 16:35
 **/
public class BigYellowDuck extends Duck {

    public BigYellowDuck() {
        super();
        super.setFlyingStrategy(new FlyNoWing());
    }

    @Override
    public void display() {
        System.out.println("我是大黄鸭！");
    }

    @Override
    public void quack() {
        System.out.println("大黄鸭。。嘎嘎嘎嘎");
    }
}
